package com.guan.ordering_sys.generator.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guan.ordering_sys.generator.entity.Account;
import com.guan.ordering_sys.param.AccountParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 林煜岚
 * @since 2021-06-23
 */

@Repository
public interface AccountMapper extends BaseMapper<Account> {
    /**
     *登陆
     * @param account
     * @return
     */
    Account selectAccountByAccountParam(@Param("account") AccountParam account);

    /**
     * 注册
     * @param account
     * @return
     */
    int insertAccount(@Param("account") AccountParam account);

}
